import request from '@/utils/request';
// 获取辩论
export async function queryLists() {
  return request('/api/debate_lists');
}
// 创建辩论
export async function createDebate (payload) {
    return request('/api/debate_create',{
    method: 'POST',
    data: payload,
  })
}

// 编辑
export async function updateDebate (payload) {
    return request('/api/debate_lists',{
    method: 'PUT',
    data: payload,
  })
}
// 删除
export async function deletedebate (payload) {
    return request('/api/debate_lists',{
    method: 'DELETE',
    data: payload,
  })
}



